package com.demo.jobhandler;



import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author fueen
 * 编写自己的定时任务Handler
 * 继承IJobHandler
 *
 */
@Component
@Slf4j
public class MyJobHandler  {

    @XxlJob("xxlJobTest")
    public ReturnT<String> xxlJobTest(String date) {
        System.out.println("---------xxlJobTest定时任务执行成功--------");
        return ReturnT.SUCCESS;
    }
}